package router

import (
	"gitee.com/libwiki/lib-mall/middleware"
	"gitee.com/libwiki/lib-mall/router/v1"
	"github.com/gogf/gf/frame/g"
	"github.com/gogf/gf/net/ghttp"
)

func init() {
	s := g.Server()

	s.Group("/", func(group *ghttp.RouterGroup) {
		group.Middleware(middleware.CORS)
		group.Group("/v1", v1.V1)
	})
}
